import { BasicResponseData } from '@/api/type'

export interface category {
  id: number
  name: string
  category1Id?: number
  category2Id?: number
}

export interface categoryListResponseData extends BasicResponseData {
  data: category[]
}

export interface AttrValue {
  id?: number | string
  valueName: string
  attrId?: number
  flag?: boolean
}

export interface Attr {
  id?: number | string
  attrName: string
  attrValueList: AttrValue[]
  categoryId: number | string
  categoryLevel: number
}

export interface AttrResponseData extends BasicResponseData {
  data: Attr[]
}
